-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: unified trade events #910
base: master
Are you sure you want to change the base?
Conversation
what if we call the new pallet something more generic ... eg. amm-support. it might be useful for other things, not only one specific trade event. |
pallets/trade-event/src/lib.rs
Outdated
who: T::AccountId, | ||
pool: PoolType<AssetId>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after discussion with @jak-pan , we suggest:
who: T::AccountId, | |
pool: PoolType<AssetId>, | |
swapper: T::AccountId, | |
filler: T::AccountId, // ICE acc, Omnipool acc, stablepool acc, xyk account etc.. | |
type: FillerType, |
enum FillerType {
Omnipool,
Stableswap,
XYK,
LBP,
OTC,
ICE,
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who is filler
in OTC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type
is a keyword, cannot be used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who is
filler
in OTC?
the one filling order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't it the one who owns the order?
Crate versions that have not been updated:
New crates:
Crate versions that have been updated:
Runtime version has not been increased. |
# Conflicts: # Cargo.lock # Cargo.toml # pallets/lbp/Cargo.toml # pallets/omnipool/Cargo.toml # pallets/otc/Cargo.toml # pallets/route-executor/Cargo.toml # pallets/stableswap/Cargo.toml
# Conflicts: # Cargo.lock # pallets/omnipool/Cargo.toml
# Conflicts: # Cargo.lock # pallets/stableswap/Cargo.toml
…to omnipool swaps
Fixes #755
TODO: